package com.juzipi.demo.client;

import com.juzipi.demo.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient{
    //熔断
    @Override
    public User findById(Integer id) {
        User user = new User();
        user.setName("服务器正忙，请稍后再试");
        return user;
    }
}
